
* This do-file runs the vote regressions at the individual level on the USA, based on CCES data


use DB_For_Vote_Regressions_Individual_USA.dta,clear

*************************
* Table 2 - Columns 1-2 *
*************************

reghdfe environmentalism trade_exposure_tot female age high_edu [pweight=weight], a(czone year) cluster(czone_year)

ivreghdfe environmentalism female age high_edu (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first a(czone year) cluster(czone_year)


*************
* Table A17 *
*************

ivreghdfe environmentalism female age high_edu (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first a(czone year) cluster(czone_year)

ivreghdfe environmentalism female age high_edu (trade_exposure_tot int_female=iv_trade_exposure_tot iv_int_female) [pweight=weight], first a(czone year) cluster(czone_year)

ivreghdfe environmentalism female age high_edu (trade_exposure_tot int_high_edu=iv_trade_exposure_tot iv_int_high_edu) [pweight=weight], first a(czone year) cluster(czone_year)

ivreghdfe environmentalism full_time female age high_edu (trade_exposure_tot int_full_time=iv_trade_exposure_tot iv_int_full_time) [pweight=weight], first a(czone year) cluster(czone_year)

ivreghdfe environmentalism part_time female age high_edu (trade_exposure_tot int_part_time=iv_trade_exposure_tot iv_int_part_time) [pweight=weight], first a(czone year) cluster(czone_year)

ivreghdfe environmentalism unemployed female age high_edu (trade_exposure_tot int_unemployed=iv_trade_exposure_tot iv_int_unemployed) [pweight=weight], first a(czone year) cluster(czone_year)

ivreghdfe environmentalism student female age high_edu (trade_exposure_tot int_student=iv_trade_exposure_tot iv_int_student) [pweight=weight], first a(czone year) cluster(czone_year)

ivreghdfe environmentalism retired female age high_edu (trade_exposure_tot int_retired=iv_trade_exposure_tot iv_int_retired) [pweight=weight], first a(czone year) cluster(czone_year)

ivreghdfe environmentalism young female age high_edu (trade_exposure_tot int_young=iv_trade_exposure_tot iv_int_young) [pweight=weight], first a(czone year) cluster(czone_year)

ivreghdfe environmentalism old female age high_edu (trade_exposure_tot int_old=iv_trade_exposure_tot iv_int_old) [pweight=weight], first a(czone year) cluster(czone_year)


*************
* Table A18 *
*************

ivreghdfe environmentalism female age high_edu (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first a(czone year) cluster(czone_year)

ivreghdfe environmentalism female age high_edu (trade_exposure_tot=iv_trade_exposure_tot) [pweight=weight], first a(czone year partisan_id) cluster(czone_year)

